package entity;

import java.util.Date;

//购物车表order_cart
public class Order_Cart {
	private Integer cart_id;//购物车ID
	private Integer user_id;//用户ID
	private Integer product_id;//商品ID
	private Integer product_amount;//加入购物车商品数量
	private Integer model_id;//商品型号id
	private Float price;//商品价格
	private Date  add_time;//加入购物车时间
	private Date modified_time;//最后修改时间
	//私有的产品信息(以便后续获取后续的添加功能)
	private Product_Info product_Info;
	public Integer getCart_id() {
		return cart_id;
	}
	public void setCart_id(Integer cart_id) {
		this.cart_id = cart_id;
	}
	public Integer getUser_id() {
		return user_id;
	}
	public void setUser_id(Integer user_id) {
		this.user_id = user_id;
	}
	public Integer getProduct_id() {
		return product_id;
	}
	public void setProduct_id(Integer product_id) {
		this.product_id = product_id;
	}
	public Integer getProduct_amount() {
		return product_amount;
	}
	public void setProduct_amount(Integer product_amount) {
		this.product_amount = product_amount;
	}
	public Float getPrice() {
		return price;
	}
	public void setPrice(Float price) {
		this.price = price;
	}
	public Date getAdd_time() {
		return add_time;
	}
	public void setAdd_time(Date add_time) {
		this.add_time = add_time;
	}
	public Date getModified_time() {
		return modified_time;
	}
	public void setModified_time(Date modified_time) {
		this.modified_time = modified_time;
	}
	public Order_Cart() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	public Integer getModel_id() {
		return model_id;
	}
	public void setModel_id(Integer model_id) {
		this.model_id = model_id;
	}
	public Product_Info getProduct_Info() {
		return product_Info;
	}
	public void setProduct_Info(Product_Info product_Info) {
		this.product_Info = product_Info;
	}
	public Order_Cart(Integer user_id, Integer product_id, Integer product_amount, Integer model_id, Float price,
			Date add_time, Date modified_time, Product_Info product_Info) {
		super();
		this.user_id = user_id;
		this.product_id = product_id;
		this.product_amount = product_amount;
		this.model_id = model_id;
		this.price = price;
		this.add_time = add_time;
		this.modified_time = modified_time;
		this.product_Info = product_Info;
	}

	@Override
	public String toString() {
		return "Order_Cart{" +
				"cart_id=" + cart_id +
				", user_id=" + user_id +
				", product_id=" + product_id +
				", product_amount=" + product_amount +
				", model_id=" + model_id +
				", price=" + price +
				", add_time=" + add_time +
				", modified_time=" + modified_time +
				", product_Info=" + product_Info +
				'}';
	}
}
